package cn.bonoon.controllers.announcement;

import cn.bonoon.kernel.annotations.Cutoff;
import cn.bonoon.kernel.annotations.CutoffType;
import cn.bonoon.kernel.support.models.AbstractItem;
import cn.bonoon.kernel.web.annotations.grid.AsColumn;
import cn.bonoon.kernel.web.annotations.grid.AsDataGrid;
import cn.bonoon.kernel.web.annotations.grid.GridOptions;

@AsDataGrid(condition = AnnouncementCondition.class, value = @GridOptions(operationWith = 200, fitColumns = true))
public class AnnouncementItem extends AbstractItem implements AnnouncementDefine {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1260084173768485369L;

	@AsColumn(width = 100, ordinal = 0)
	private String key;

	@AsColumn(width = 100, ordinal = 1)
	private String type;

	@AsColumn(width = 80, ordinal = 2)
	private String creatorName;

	@AsColumn(width = 150, ordinal = 3)
	private String createAt;

	@AsColumn(width = 500, ordinal = 5)
	@Cutoff(value = 50, type = CutoffType.HTML)
	private String content;

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

}
